<template>
  <div>
    <span v-if="!to">
      <slot></slot>
    </span>
    <router-link :to="to" v-if="to">
      <slot></slot>
    </router-link>
    <i class="iconfont icon-angle-right"></i>
  </div>
</template>

<script>
export default {
  props: ['to']
}
</script>

